﻿<%@ Control Language="C#" AutoEventWireup="true" Codebehind="TabManagement.ascx.cs"
    Inherits="Portal.Administrator.Tabs.TabManagement" %>
<%@ Register Assembly="Framework.WebControl" Namespace="Framework.WebControls" TagPrefix="cc1" %>
<%@ Register Assembly="System.Web.Extensions" Namespace="System.Web.UI" TagPrefix="asp" %>
<link href="/Administrator/Styles/treeStyle.css" rel="stylesheet" type="text/css" />
 <asp:UpdatePanel ID="upanelTabManagement1" runat="server" UpdateMode="Conditional"
                RenderMode="Inline">
<Triggers>
    <asp:AsyncPostBackTrigger ControlID="btnUpdate" EventName="Click" />
    <asp:AsyncPostBackTrigger ControlID="btnAddNew" EventName="Click" />
    <asp:AsyncPostBackTrigger ControlID="btnDelete" EventName="Click" />
    <asp:AsyncPostBackTrigger ControlID="tvwCmds" EventName="SelectedNodeChanged" />
</Triggers>
<ContentTemplate>
<table border="0" cellpadding="0" cellspacing="1" class="content" width="100%">    
    <tr>
        <td class="postheader" width="30%" align="left" valign="top">
                    <asp:TreeView ID="tvwCmds" runat="server"  ExpandImageUrl="/Administrator/Resource/Images/TreeView/col.gif" CollapseImageUrl="/Administrator/Resource/Images/TreeView/exp.gif" NodeStyle-CssClass="TreeNode" NodeIndent="15" NoExpandImageUrl="/Administrator/Resource/Images/TreeView/noexp.gif"
                    HoverNodeStyle-CssClass="HoverTreeNode" SelectedNodeStyle-CssClass="SelectedTreeNode" OnSelectedNodeChanged="tvwCmds_SelectedNodeChanged" >                   
                    </asp:TreeView>                
        </td>        
        <td class="post" width="70%" align="left" valign="top">
            <table align="center" width="100%" cellspacing="1" cellpadding="0" border="0" class="content">
                <tr>
                    <td class="header1" colspan="2" align="left">
                        <asp:Label ID="lblCommandName" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" class="header2" height="18">
                       <asp:Label ID="lblUpdateStatus" runat="server" Font-Bold="True" ForeColor="Blue" ></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="postheader" width="25%" align="left">
                        <asp:Label ID="lblID" runat="server" Text="ID" ></asp:Label></td>
                    <td class="post" width="75%" align="left">
                        <asp:TextBox ID="txtID" runat="server" Enabled="False" Width="42px" ></asp:TextBox></td>
                </tr>
                <tr>
                    <td class="postheader" width="25%" align="left">
                        <asp:Label ID="lblName" runat="server" Text="Name"></asp:Label></td>
                    <td class="post" width="75%" align="left">
                        <asp:TextBox ID="txtName" runat="server" Width="224px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtName"
                            Display="Dynamic" ErrorMessage="(*)" ></asp:RequiredFieldValidator></td>
                </tr>
                <tr>
                    <td class="postheader" width="25%" align="left">
                        <asp:Label ID="lblTitle" runat="server" Text="Tiêu đề"></asp:Label></td>
                    <td class="post" width="75%" align="left">
                        <asp:TextBox ID="txtTitle" runat="server" Width="224px" ></asp:TextBox></td>
                </tr>
                <tr>
                    <td class="postheader" width="25%" align="left">
                        <asp:Label ID="lblDescription" runat="server" Text="Mô tả" ></asp:Label></td>
                    <td class="post" width="75%" align="left">
                        <asp:TextBox ID="txtDescription" runat="server" TextMode="MultiLine" Width="226px" ></asp:TextBox></td>
                </tr>
                <tr>
                    <td class="postheader" width="25%" align="left">
                        <asp:Label ID="lblUrl" runat="server" Text="Url" ></asp:Label></td>
                    <td class="post" width="75%" align="left">
                        <asp:TextBox ID="txtUrl" runat="server" Width="224px" ></asp:TextBox></td>
                </tr>
                <tr>
                    <td class="postheader" width="25%" align="left">
                        <asp:Label ID="lblLayout" runat="server" Text="Layout" ></asp:Label></td>
                    <td class="post" width="75%" align="left">
                        <asp:DropDownList ID="dropPath" runat="server" Width="254px" >
                        </asp:DropDownList></td>
                </tr>
                <tr>
                    <td class="postheader" width="25%" align="left">
                        <asp:Label ID="lblParent" runat="server" Text="Cha" ></asp:Label></td>
                    <td class="post" width="75%" align="left">
                        <asp:DropDownList ID="dropParent" runat="server" Width="254px" >
                        </asp:DropDownList></td>
                </tr>
                <tr>
                    <td class="postheader" width="25%" align="left">
                        <asp:Label ID="lblOrder" runat="server" Text="Thứ tự" ></asp:Label></td>
                    <td class="post" width="75%" align="left">
                        <asp:DropDownList ID="dropIndex" runat="server" Width="88px" >
                        </asp:DropDownList></td>
                </tr>                        
                <tr>
                    <td class="postheader" width="25%" align="left">
                        <asp:Label ID="lblActive" runat="server" Text="Hoạt động" ></asp:Label></td>
                    <td class="post" width="75%" align="left">
                        <asp:CheckBox ID="chkEnable" runat="server" Checked="True" CssClass="input" /></td>
                </tr>
                <tr>
                    <td class="postheader" width="25%" align="left">
                        <asp:Label ID="lblVisible" runat="server" Text="Hiện thị" ></asp:Label></td>
                    <td class="post" width="75%" align="left">
                        <asp:CheckBox ID="chkVisble" runat="server" Checked="True" CssClass="input" /></td>
                </tr>           
                <tr>
                    <td class="postfooter" colspan="2" valign="middle" align="center">
                        <cc1:ButtonRoleEdit ID="btnUpdate" runat="server" CssClass="pbutton" OnClick="btnUpdate_Click" Text="Cập nhật" />&nbsp;
                        <cc1:ButtonRoleAdd ID="btnAddNew" runat="server" CssClass="pbutton" OnClick="btnAddNew_Click" Text="Thêm mới" />
                        <cc1:ButtonRoleDelete ID="btnDelete" runat="server" CssClass="pbutton" OnClick="btnDelete_Click" Text="Xóa" />
                        <asp:Button ID="btnEmpty" runat="server" CausesValidation="False" CssClass="pbutton" OnClick="btnEmpty_Click" Text="Hủy" Width="77px" /></td>
                </tr>
            </table>
        </td>
    </tr>
</table>
</ContentTemplate>
</asp:UpdatePanel>